/**
 * Apr 11, 2012
 */
package org.zlex.spring.orm.ibatis.dao;

import java.util.List;

import org.zlex.spring.orm.ibatis.domain.User;

/**
 * 
 * @author zlex
 * @version 1.0
 * @since 1.0
 */
public interface UserDao {

	/**
	 * 遍历全部用户
	 * 
	 * @return
	 */
	List<User> readList();

	User read(String username);

	void update(int id, String username);

	void delete(int id);

	int create(User user);
}
